package com.ruoyi.an.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.an.mapper.AnZhuCarAssessMapper;
import com.ruoyi.an.domain.AnZhuCarAssess;
import com.ruoyi.an.service.IAnZhuCarAssessService;

/**
 * 车辆安全考核Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class AnZhuCarAssessServiceImpl implements IAnZhuCarAssessService 
{
    @Autowired
    private AnZhuCarAssessMapper anZhuCarAssessMapper;

    /**
     * 查询车辆安全考核
     * 
     * @param id 车辆安全考核主键
     * @return 车辆安全考核
     */
    @Override
    public AnZhuCarAssess selectAnZhuCarAssessById(Long id)
    {
        return anZhuCarAssessMapper.selectAnZhuCarAssessById(id);
    }

    /**
     * 查询车辆安全考核列表
     * 
     * @param anZhuCarAssess 车辆安全考核
     * @return 车辆安全考核
     */
    @Override
    public List<AnZhuCarAssess> selectAnZhuCarAssessList(AnZhuCarAssess anZhuCarAssess)
    {
        return anZhuCarAssessMapper.selectAnZhuCarAssessList(anZhuCarAssess);
    }

    /**
     * 新增车辆安全考核
     * 
     * @param anZhuCarAssess 车辆安全考核
     * @return 结果
     */
    @Override
    public int insertAnZhuCarAssess(AnZhuCarAssess anZhuCarAssess)
    {
        return anZhuCarAssessMapper.insertAnZhuCarAssess(anZhuCarAssess);
    }

    /**
     * 修改车辆安全考核
     * 
     * @param anZhuCarAssess 车辆安全考核
     * @return 结果
     */
    @Override
    public int updateAnZhuCarAssess(AnZhuCarAssess anZhuCarAssess)
    {
        return anZhuCarAssessMapper.updateAnZhuCarAssess(anZhuCarAssess);
    }

    /**
     * 批量删除车辆安全考核
     * 
     * @param ids 需要删除的车辆安全考核主键
     * @return 结果
     */
    @Override
    public int deleteAnZhuCarAssessByIds(Long[] ids)
    {
        return anZhuCarAssessMapper.deleteAnZhuCarAssessByIds(ids);
    }

    /**
     * 删除车辆安全考核信息
     * 
     * @param id 车辆安全考核主键
     * @return 结果
     */
    @Override
    public int deleteAnZhuCarAssessById(Long id)
    {
        return anZhuCarAssessMapper.deleteAnZhuCarAssessById(id);
    }
}
